package common;

public enum ServiceResponseEnum {
	WRONG_PASSWORD("Username and password mismatch for account holder name"),
	//Create new account service
	EXISTING_ACCOUNT("Cannot create this account: the name is already exist"),
	
	//Close existing account service
	NON_EXISTING_ACCOUNT("ERROR: this account does not exists"),
	CLOSE_SUCCESSFUL("Successfully close account ID"),
	
	//Balance enquiry service
	
	
	//Withdraw service
	LOW_BALANCE("ERROR:Cannot withdraw due to insufficient balance."),
	SUCCESSFUL_WITHDRAW("Successfully withdraw the amount of "),
	
	//deposit service
	SUCCESSFUL_DEPOSIT("Successfully deposit the amount of "),
	
	//check balance
	SUCCESS_BALANCE_ENQUIRY("Your balance is "),

	//transfer service
	NON_EXISTING_SENDER_ACCOUNT("ERROR!! Sender account does not exists !"),
	NON_EXISTING_RECIPIENT_ACCOUNT("ERROR: Recipient account does not exists !"),
	INSUFFICIENT_SENDER_BALANCE("ERROR!! Insufficient sender balance"),
	SUCCESS_TRANSFER_FUND("Fund transfered succesfully "),
	SENDER_ACCOUNT_WRONG_PASSWORD("ERROR!! Wrong sender account password");	
	private String msg;
	
	//transfer service
	
	ServiceResponseEnum(String msg) {
		this.setMsg(msg);
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
